function dataset = BuildDataset(location, file_names)

if strcmp(location, 'home')
    home_path = '/home/georgi/Desktop/Project/';
elseif strcmp(location, 'dice')    
    home_path = '/afs/inf.ed.ac.uk/user/s07/s0785186/Desktop/Project/';
end

current_row = 1;

for file_num = 1:numel(file_names)
    
    file = loadfile(home_path,'policies/',file_names{file_num});
    params = file.parameters;
    rows = size(params,1);
    
    dataset(current_row:(current_row + rows - 1),:) = params;
    current_row = current_row + rows;
        
end

end